#include <iostream>
using namespace std;
int main()
{
    int sum;
    int input=1;
    int count=0;
    while(input){
        cin>>input;
        if(input>100 || input<1){
            continue;
        }
        sum+=input;
        count++;
    }
    cout<<sum<<endl;
    cout<<count<<endl;
    return 0;
}